import { defHttp } from '/@/utils/http/axios'

// 查询数据源配置列表
export function getFields(businessCode: string, tableName: string) {
    return defHttp.get({ url: '/dynamic/getFields?businessCode=' + businessCode + "&tableName=" + tableName })
}

// 查询用户对字段的自定义配置信息
export function getCustomFields(businessCode: string, tableName: string) {
    return defHttp.get({ url: '/dynamic/getCustomFields?businessCode=' + businessCode + "&tableName=" + tableName })
}

export function downloadImportTpl(businessCode:string){
  return defHttp.download({ url: '/download/template/' + businessCode })
}
